//% extends .Oboe.oboe.Controller

function ModeA()
{
    var text = new Text("Hello World!", "36px Arial", "#777");
    text.x = 360;
    text.y = 200;
        
    this.Super( text );
    
    var acc = 0;

    trace("Mode A");

    //% slot
    this.onTick = function(t){
        acc += t;
        if( acc >= 1 )
            this.signalUp("onClickModeA");
    };
    
    this.onEnterState = function(){ acc=0; };
}